<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  
  <title>list | H5教案</title>

  
  <meta name="author" content="John Doe">
  

  
  <meta name="description" content="nodeJs开发常用内置模块这里介绍几个常用的内置模块：url, querystring, http, events, fs, stream, readline, crypto, zlib
尝试使用浏览器完成调试node代码1234node --inspect a.js打开地址浏览器地址 chrom">
  

  
  
  <meta name="keywords" content="">
  

  <meta id="viewport" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">

  <meta property="og:title" content="list"/>

  <meta property="og:site_name" content="H5教案"/>

  
  <meta property="og:image" content="/ericxie-book/favicon.ico"/>
  

  <link href="/ericxie-book/favicon.ico" rel="icon">
  <link rel="alternate" href="/ericxie-book/atom.xml" title="H5教案" type="application/atom+xml">
  <link rel="stylesheet" href="/ericxie-book/css/style.css" media="screen" type="text/css">
<meta name="generator" content="Hexo 5.3.0"></head>


<body>
<div class="blog">
  <div class="content">

    <header>
  <div class="site-branding">
    <h1 class="site-title">
      <a href="/ericxie-book/">H5教案</a>
    </h1>
    <p class="site-description"></p>
  </div>
  <nav class="site-navigation">
    <ul>
      
    </ul>
  </nav>
</header>

    <main class="site-main posts-loop">
    <article>

  
    
    <h3 class="article-title"><span>list</span></h3>
    
  

  <div class="article-top-meta">
    <span class="posted-on">
      <a href="/ericxie-book/2021/01/25/list/" rel="bookmark">
        <time class="entry-date published" datetime="2021-01-25T11:48:17.000Z">
          2021-01-25
        </time>
      </a>
    </span>
  </div>


  

  <div class="article-content">
    <div class="entry">
      
        <h2 id="nodeJs开发"><a href="#nodeJs开发" class="headerlink" title="nodeJs开发"></a>nodeJs开发</h2><h3 id="常用内置模块"><a href="#常用内置模块" class="headerlink" title="常用内置模块"></a>常用内置模块</h3><p>这里介绍几个常用的内置模块：url, querystring, http, events, fs, stream, readline, crypto, zlib</p>
<h4 id="尝试使用浏览器完成调试node代码"><a href="#尝试使用浏览器完成调试node代码" class="headerlink" title="尝试使用浏览器完成调试node代码"></a>尝试使用浏览器完成调试node代码</h4><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">node --inspect a.js</span><br><span class="line">打开地址浏览器地址 chrome://inspect/ </span><br><span class="line">添加地址然后重新打开</span><br><span class="line">node --inspect --inspect-brk  a.js</span><br></pre></td></tr></table></figure>
<h4 id="node进程管理工具"><a href="#node进程管理工具" class="headerlink" title="node进程管理工具"></a>node进程管理工具</h4><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">nodemon</span><br><span class="line">supervisor</span><br><span class="line">forever</span><br><span class="line">pm2</span><br><span class="line"></span><br><span class="line">npm i nodemon -g</span><br><span class="line">nodemon a</span><br><span class="line">或者</span><br><span class="line">npx nodemon a</span><br><span class="line"> </span><br></pre></td></tr></table></figure>
<h2 id="1、nodejs基础"><a href="#1、nodejs基础" class="headerlink" title="1、nodejs基础"></a>1、nodejs基础</h2><h3 id="1、url"><a href="#1、url" class="headerlink" title="1、url"></a>1、<a href="https://xietian79.gitee.io/ericxie-book/2021/01/25/url/index.html">url</a></h3><h3 id="2、querystring"><a href="#2、querystring" class="headerlink" title="2、querystring"></a>2、<a href="https://xietian79.gitee.io/ericxie-book/2021/01/25/querystring/index.html">querystring</a></h3><h3 id="3、http"><a href="#3、http" class="headerlink" title="3、http"></a>3、<a href="https://xietian79.gitee.io/ericxie-book/2021/01/25/http-https/index.html">http</a></h3><h3 id="4、爬虫"><a href="#4、爬虫" class="headerlink" title="4、爬虫"></a>4、<a href="https://xietian79.gitee.io/ericxie-book/2021/01/26/WebCrawlers/index.html">爬虫</a></h3><h3 id="5、事件"><a href="#5、事件" class="headerlink" title="5、事件"></a>5、<a href="https://xietian79.gitee.io/ericxie-book/2021/01/26/event/index.html">事件</a></h3><h3 id="6、路径"><a href="#6、路径" class="headerlink" title="6、路径"></a>6、<a href="https://xietian79.gitee.io/ericxie-book/2021/01/26/path/index.html">路径</a></h3><h3 id="7、file"><a href="#7、file" class="headerlink" title="7、file"></a>7、<a href="https://xietian79.gitee.io/ericxie-book/2021/01/26/file/index.html">file</a></h3><h3 id="8、路由基础"><a href="#8、路由基础" class="headerlink" title="8、路由基础"></a>8、<a href="https://xietian79.gitee.io/ericxie-book/2021/01/26/route/index.html">路由基础</a></h3><h3 id="9、静态资源案例"><a href="#9、静态资源案例" class="headerlink" title="9、静态资源案例"></a>9、<a href="https://xietian79.gitee.io/ericxie-book/2021/01/27/staticPath/index.html">静态资源案例</a></h3><h2 id="2、Yarn入门"><a href="#2、Yarn入门" class="headerlink" title="2、Yarn入门"></a>2、Yarn入门</h2><p><a href="https://xietian79.gitee.io/ericxie-book/2021/01/27/yarn/index.html">传送门</a></p>
<h2 id="3、Express"><a href="#3、Express" class="headerlink" title="3、Express"></a>3、Express</h2><h3 id="1、express基础"><a href="#1、express基础" class="headerlink" title="1、express基础"></a>1、<a href="https://xietian79.gitee.io/ericxie-book/2021/01/27/express-base/index.html">express基础</a></h3><h3 id="2、express中间件和路由"><a href="#2、express中间件和路由" class="headerlink" title="2、express中间件和路由"></a>2、<a href="https://xietian79.gitee.io/ericxie-book/2021/01/27/express-router/index.html">express中间件和路由</a></h3><h2 id="4、art-template"><a href="#4、art-template" class="headerlink" title="4、art-template"></a>4、art-template</h2><p><a href="https://xietian79.gitee.io/ericxie-book/2021/01/30/eart-template/index.html">传送门</a></p>
<h2 id="5、MongoDB数据库"><a href="#5、MongoDB数据库" class="headerlink" title="5、MongoDB数据库"></a>5、MongoDB数据库</h2><h3 id="1、mongodb"><a href="#1、mongodb" class="headerlink" title="1、mongodb"></a>1、<a href="https://xietian79.gitee.io/ericxie-book/2021/01/30/mongoDB/index.html">mongodb</a></h3><h3 id="2、mongoose"><a href="#2、mongoose" class="headerlink" title="2、mongoose"></a>2、<a href="https://xietian79.gitee.io/ericxie-book/2021/01/30/mongoose/index.html">mongoose</a></h3>
      
    </div>

  </div>

  <div class="article-footer">
    <div class="article-meta pull-left">

    

    

    </div>

    
  </div>
</article>

  






    </main>

    <footer class="site-footer">
  <p class="site-info">
    Proudly powered by <a href="https://hexo.io/" target="_blank">Hexo</a> and
    Theme by <a href="https://github.com/CodeDaraW/Hacker" target="_blank">Hacker</a>
    </br>
    
    &copy; 2021 John Doe
    
  </p>
</footer>
    
    
  </div>
</div>
</body>
</html>